package com.itheima.homework.work1;
//电器类
public class Electric {
    private String bread;
    private String model;
    private String color;
    private int price;

    public Electric() {
    }

    public Electric(String bread, String model, String color, int price) {
        this.bread = bread;
        this.model = model;
        this.color = color;
        this.price = price;
    }

    public String getBread() {
        return bread;
    }

    public void setBread(String bread) {
        this.bread = bread;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Electric{" +
                "bread='" + bread + '\'' +
                ", model='" + model + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +", ";
    }
}
